import { createRouter, createWebHashHistory } from 'vue-router';
import routes from './modules';
import type { App } from 'vue';
export const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

// config router
export function setupRouter(app: App<Element>) {
  app.use(router);
}
